projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd6ff2
)
range: Always queue an allocate if the adjustment changed
author
Timm Bäder
<mail@baedert.org>
Tue, 30 Jan 2018 09:13:51 +0000
(10:13 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 30 Jan 2018 20:51:50 +0000
(21:51 +0100)
The slider gets its new size in size-allocate, so we have to do this
even if the range has no origin.
gtk/gtkrange.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrange.c
b/gtk/gtkrange.c
index 04ea0b8fe948fbebbc2bcf754e8c3c79a1684746..d6464e30f0c8000a7b2145c8a34815ed0fa23818 100644
(file)
--- a/
gtk/gtkrange.c
+++ b/
gtk/gtkrange.c
@@
-2805,9
+2805,7
@@
gtk_range_calc_slider (GtkRange *range)
gtk_widget_set_visible (priv->slider_widget, visible);
- if (priv->has_origin)
- gtk_widget_queue_allocate (priv->trough_widget);
-
+ gtk_widget_queue_allocate (priv->trough_widget);
gtk_range_update_mouse_location (range);
}